package com.xbao.service.impl;

import com.xbao.dao.LessionMapper;
import com.xbao.model.Lession;
import com.xbao.model.req.LessionReq;
import com.xbao.service.LessionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by qingshengzheng on 18/8/29.
 */
@Service
public class LessionServiceImpl implements LessionService {
    @Resource
    private LessionMapper lessionMapper;
    @Override
    public void addLession(LessionReq lessionReq) {
        lessionMapper.addLession(lessionReq);
    }

    @Override
    public void deleteLession(Long id) {
        lessionMapper.deleteLession(id);

    }

    @Override
    public void detailLession(Long id) {
        lessionMapper.detailLession(id);
    }

    @Override
    public List<Lession> queryLessions(LessionReq lessionReq) {
        return lessionMapper.queryLessions(lessionReq);


    }
}
